how to check whether a number is palindrome or not in python